import axios from '@/libs/api.request'

export const getList = () => {
  return axios.request({
    url: '/api/admin/org/list',
    method: 'get'
  })
}

export const getTree = () => {
  return axios.request({
    url: '/api/admin/org/tree',
    method: 'get'
  })
}

export const saveModel = (data) => {
  return axios.request({
    url: '/api/admin/org/save',
    method: 'post',
    data
  })
}
